#!/usr/bin/python
# -*- mode:python; coding:utf-8 -*-

import cv
import sys

if len(sys.argv) != 2:
    print "Usage: %s <image>" % sys.argv[0]
    sys.exit(1)

src = cv.LoadImage(sys.argv[1])
dst = cv.CreateImage((src.width, src.height), cv.IPL_DEPTH_16S, src.channels)
cv.Sobel(src, dst, 0, 1, 7)

cv.NamedWindow("Test 03")
cv.StartWindowThread()
cv.ShowImage("Test 03", dst)
cv.WaitKey()



